package com.danbay.cloud.lock.device.api.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @author yangyanchen on 2017/12/18
 *         Copyright © 2016 －2017 旦倍科技
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AliasResultDto {

    @NotBlank(message = "上报的设备ID不允许为空")
    private String deviceId;

    @NotBlank(message = "上报的密码类型")
    private Integer type;

    @NotBlank(message = "上报的旧密码别名不允许为空")
    private String oldAlias;

    @NotBlank(message = "上报的新密码别名不允许为空")
    private String newAlias;

    private String time;

    @NotBlank(message = "上报的操作结果不允许为空")
    private String opCode;
}
